VT-d: don't pass bridge devices to domain_context_mapping_one()
authorJan Beulich <jbeulich@suse.com>
Thu, 5 Mar 2020 10:31:13 +0000 (11:31 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 5 Mar 2020 10:31:13 +0000 (11:31 +0100)
commit9e48fafe4d3ef2d81f503632bd406160a4687278
tree88ded1d8a43685c8e3d6ded956ce2ca8ab18ba91
parent888a7da8c9ed6adb763acc5800adcc6f548abcd7
VT-d: don't pass bridge devices to domain_context_mapping_one()

When passed a non-NULL pdev, the function does an owner check when it
finds an already existing context mapping. Bridges, however, don't get
passed through to guests, and hence their owner is always going to be
Dom0, leading to the assigment of all but one of the function of multi-
function PCI devices behind bridges to fail.

Reported-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
master commit: a4d457fd59f4ebfb524aec82cb6a3030087914ca
master date: 2020-01-22 16:39:58 +0100
xen/drivers/passthrough/vtd/iommu.c